<?php
require_once '../sub/init.php';
require_once ZEAI.'sub/conn.php';
$id=intval($id);$content='';$title='';$pathlist='';
if($t=='party'){
	$row = $db->ROW(__TBL_PARTY__,"title,content","flag>0 AND id=".$id,"name");
	if ($row){
		$content   = dataIO($row['content'],'out');
		$title     = dataIO($row['title'],'out');
	}else{exit('forbidden');}
}
?>
<!doctype html><html><head><meta charset="utf-8">
<title><?php echo $title;?></title>
<?php if (is_mobile()){?>
	<?php echo HEADMETA; ?>
    <meta name="generator" content="Zeai.cn V9" />
    <link href="<?php echo RES;?>m/css/m.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
    <script src="<?php echo RES;?>www_zeai_cn.js?<?php echo $_ZEAI['cache_str'];?>"></script>
    <script src="<?php echo RES;?>m/js/m.js?<?php echo $_ZEAI['cache_str'];?>"></script>
    <style>
    body{width:100%;box-sizing:border-box;background-color:#fff;text-align:left}
    body{color:#333;line-height:200%;font-size:1.6rem}
    img{width:100%;display:block;margin:1.5rem auto}
    </style>
<?php }else{ ?>
    <link href="<?php echo RES;?>p/css/p.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
    <style>
    body{width:100%;box-sizing:border-box;background-color:#fff;text-align:left}
    body{color:#333;line-height:200%;font-size:14px}
    img{display:block;margin:15px auto}
    </style>
<?php }?>
</head>
<body>
<?php echo $content;?>
</body>
</html>